const axios = require("./request.js")
module.exports = {
  //发送用户账号信息
  getUserInfo(data) {
    return axios.post('AfterSale/Login/', data)
  },

  //提交售后信息
  postMaintenance(data) {
    return axios.post('AfterSale/PostMaintenance/', data)
  },

  //修改售后工单
  editMaintenance(data) {
    return axios.post('AfterSale/EditMaintenance/', data)
  },


  //获取故障原因
  getFaultInfo(data) {
    return axios.post('AfterSale/GetFaultInfo/', data)
  },

  //获取厂商信息
  getAllBatteryBackManufacturer(data) {
    return axios.post('AfterSale/GetAllBatteryBackManufacturer/', data)
  },

  //获取电池列表
  dealBatteryNumberList(data) {
    return axios.post('AfterSale/DealBatteryNumberList/', data)
  },

  //所有未处理质保接口
  getAllUnDealMaintenanceList(data) {
    return axios.post('AfterSale/GetAllUnDealMaintenanceList/', data)
  },

  //所有已处理质保接口
  getAllDealMaintenanceList(data) {
    return axios.post('AfterSale/GetAllDealMaintenanceList/', data)
  },

  //通过售后编号获取售后详情
  getMaintenanceDetail(data) {
    return axios.post('AfterSale/GetMaintenanceDetail/', data)
  },

  //获取所有商品接口
  getAllProducts(data) {
    return axios.post('AfterSale/GetAllProducts/', data)
  },

  //用户获取实积分和预积分接口
  getUserPoints(data) {
    return axios.post('AfterSale/GetUserPoints/', data)
  },

  //获取实积分和预积分所有变动记录接口
  getUserAllPointsChangeList(data) {
    return axios.post('AfterSale/GetUserAllPointsChangeList/', data)
  },

  //商城直接下单商品
  payStorePoints(data) {
    return axios.post('AfterSale/PayStorePoints/', data)
  },

  //获取所有订单信息接口
  getUserAllOrders(data) {
    return axios.post('AfterSale/GetUserAllOrders/', data)
  },

  //添加商品添加至购物车
  addProductToCart(data) {
    return axios.post('AfterSale/AddProductToCart/', data)
  },

  //查看购物车详情信息
  getShoppingCarts(data) {
    return axios.post('AfterSale/GetShoppingCarts/', data)
  },

  //购物车下单商品
  payShoppingPoints(data) {
    return axios.post('AfterSale/PayShoppingPoints/', data)
  },

  //更改购物车详情信息
  changeShoppingCarts(data) {
    return axios.post('AfterSale/ChangeShoppingCarts/', data)
  },

  //取消订单
  cancelUserOrder(data) {
    return axios.post('AfterSale/CancelUserOrder/', data)
  },

  //新增地址
  addNewAddress(data) {
    return axios.post('AfterSale/AddNewAddress/', data)
  },

  //获取全部地址接口
  getUserAllAddress(data) {
    return axios.post('AfterSale/GetUserAllAddress/', data)
  },

  //修改地址接口
  updateAddress(data) {
    return axios.post('AfterSale/UpdateAddress/', data)
  },

  //删除地址
  deleteUserAddress(data) {
    return axios.post('AfterSale/DeleteUserAddress/', data)
  },

  //获取默认地址
  getUserDefaultAddress(data) {
    return axios.post('AfterSale/GetUserDefaultAddress/', data)
  },

  //切换默认地址
  changeUserDefaultAddress(data) {
    return axios.post('AfterSale/ChangeUserDefaultAddress/', data)
  },

  getUnSendMaintenance(data) {
    return axios.post('AfterSale/GetUnSendMaintenance/', data)
  },

  sendAllMaintenance(data) {
    return axios.post('AfterSale/SendAllMaintenance/', data)
  },

  updatePassword(data) {
    return axios.post('AfterSale/UpdatePassword/', data)
  },

  updateUserInfo(data) {
    return axios.post('AfterSale/UpdateUserInfo/', data)
  },

  deleteMaintenance(data) {
    return axios.post('AfterSale/DeleteMaintenance/', data)
  },

  getBatteryBrandInfo(data) {
    return axios.post('AfterSale/GetBatteryBrandInfo/', data)
  },

  deleteImage(data) {
    return axios.post('AfterSale/DeleteImage/', data)
  },

  editGetBatteryNumberList(data) {
    return axios.post('AfterSale/EditGetBatteryNumberList/', data)
  },
}